﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PagedList<Shop>>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CssContent" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Style/Store.css" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" runat="server">
    <div class="webNav">
        当前位置：<%=Html.ActionLink("首页","index","home") %>
        > 商家列表
    </div>
    <div class="storenav">
        <span>按首字母：</span>
        <%for (char c = 'A'; c <= 'Z'; c++)
          { %>
        <%=Html.Link(c.ToString(), "List", "Store", false, false, new RouteValueDictionary { { "initial", c } }, new RouteValueDictionary { { "rel", c } })%>
        <%} %>
        <%=Html.Link("全部", "List", "Store", false, false, new RouteValueDictionary { { "initial", "0" } }, new RouteValueDictionary { { "rel", "0" }, { "id", "allstorenav" } })%>
        <select id="Sort">
            <option value="">选择排序规则</option>
            <option value="ShopGradeID_ASC">店铺等级</option>
            <option value="DataState_ASC">最新更新</option>
        </select>
    </div>
    <div class="storelist">
        <% foreach (var item in Model){%>
        <a href="<%=Url.Action("Index",new {ID = item.ID}) %>">
        <dl>
            <dt>
                <%if (!item.LogoURL.IsNullOrEmpty()){ %>
                <img class="storelog" alt="" src="<%=item.LogoURL%>" width="218" height="98" />
                <%--<img class="recommend" alt="" src="/Style/Images/store_gold.png" width="33" height="33" />--%>
                <%}else{%>
                    <div style="font-size:20px;padding: 20px 0 0 20px;font-weight: bold;"><%=item.SummaryName%></div>
                <%} %>
            </dt>
            <dd>
                <p><%=item.SummaryName%></p>
                <p class="statistics"><%=item.GetGoodsCount()%><span>款</span></p>
            </dd>
        </dl>
        </a>
        <%}%>

    </div>
    <div class="pager" style="clear: both; padding-top: 10px">
        <%= Html.Pager("list","store", Model.PageIndex, Model.PageSize, Model.TotalCount)%>
    </div>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="JsContent" runat="server">
    <script language="javascript" type="text/javascript" src="/Scripts/JQuery.Query.js"></script>
    <script language="javascript" type="text/javascript" src="/js/lukou.ui.js"></script>
</asp:Content>
